home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998…eptember: Technology Seed / September 98 ADC Seed CD.toast / Language Analysis Manager / DarumaDR1Package / Examples / TextConverter / Sources / HighLevelTextConvert.h < prev   
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.6 KB  |  67 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        HighLevelTextConvert.h
  3.     
  4.     Contains:    A Sample application for High-level text conversion
  5.  
  6.      Version:    Technology:    System 8
  7.                  Release:    Daruma Developer Release 1
  8.  
  9.      Copyright:    1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Contact:    daruma@apple.com
  12.  
  13. */
  14.  
  15.  
  16. #pragma once
  17.  
  18. #ifndef __HIGHLEVELTEXTCONVERT__
  19. #define __HIGHLEVELTEXTCONVERT__
  20.  
  21. #include <Types.h>
  22.  
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26.  
  27. //========================================================================================
  28. // Constants
  29. //========================================================================================
  30.  
  31. //
  32. // Predefined conversion types
  33. //
  34. enum {
  35.     kConvertKanaToKanji            = 1,    /* Kana-Kanji conversion    */
  36.     kConvertKanjiToKana,                /* Kanji-Kana conversion    */
  37.     kConvertKanjiToUtterance            /* for TextToSpeech            */
  38. };
  39.  
  40. //
  41. // Error value
  42. //
  43. enum {
  44.     kConvTextOverFlowErr            = 128,    /* source text is too long    */
  45.     kConvFailAnalysisErr,                    /* analysis failed            */
  46.     kConvUnknownConversionTypeErr,            /* unknown conversion type    */
  47.     kConvDictionaryNotFoundErr                /* dictionary not found        */
  48. };
  49.  
  50.  
  51. //========================================================================================
  52. // Prototypes
  53. //========================================================================================
  54.  
  55. extern OSStatus LaConvertPascalString( UInt16 conversionType, ConstStr255Param inStr, ByteCount *actualLength, Str255 outStr );
  56. extern OSStatus LaConvertText( UInt16 conversionType, ByteCount inLength, const char *inTextBuf, ByteCount maxLength, ByteCount *actualLength, char *outTextBuf );
  57. extern void LaFinalizeConvert( void);
  58.  
  59.  
  60. #ifdef __cplusplus
  61. }
  62. #endif
  63.  
  64. #endif /* __HIGHLEVELTEXTCONVERT__ */
  65.  
  66.  
  67.